package com.neu.flashmall.user.service;

import com.github.pagehelper.PageInfo;
import com.neu.flashmall.user.entity.UmsAddress;

public interface UmsAddressService {
    PageInfo<UmsAddress> getPaged(Integer pageNum,Integer pageSize);

    Integer changeDefaultStatus(Long addressId);

    UmsAddress insert(UmsAddress umsAddress);
    Integer update(UmsAddress umsAddress);
    String delete(Long addressId);

    UmsAddress getOneById(Long id);

    UmsAddress getDefaultAddressByUserId(Long userId);
}
